import React from "react";
import { useSelector, useDispatch } from "react-redux";
import { Switch, Route, useLocation } from "react-router-dom";
import Demo from "./demo"; // Material -ui 的学习
import DemoReactStudy from "./demo-react-study"; // react 的 深入浅出 拉钩
import Index from "./container";

function App() {
  return (
    <Switch>
      <Route exact path="/">
        <Index />
      </Route>
      <Route exact path="/material">
        <Demo />
      </Route>
      <Route exact path="/react">
        <DemoReactStudy />
      </Route>
    </Switch>
  );
}

export default App;
